package zhieasy.cn.service.book_market;

import zhieasy.cn.common.vo.ResultVO;
import zhieasy.cn.model.book_market.UserBook;

import java.util.List;

/**
 * @author wangzeya
 * @create 2020-08-13 11:15:00
 */
public interface SortService {
    /**
     * 按价格排序
     *
     * @param bookId
     * @param bookOrder
     * @return
     */
    public ResultVO<List<UserBook>> priceSort(String bookId , String bookOrder, int pageIndex , int pageSize);
    /**
     * 按热度排序
     *
     * @param bookId
     * @param bookOrder
     * @return
     */
    public ResultVO<List<UserBook>>clicksSort(String bookId , String bookOrder, int pageIndex , int pageSize);
    /**
     * 按新旧程度排序
     *
     * @param bookId
     * @param bookOrder
     * @return
     */
    public ResultVO<List<UserBook>>degreeSort(String bookId , String bookOrder, int pageIndex , int pageSize);
}
